const express = require('express');
const path = require('path');
const app = express();

// 设置静态文件目录
app.use(express.static(path.join(__dirname, './')));

const port = 3002;
app.listen(port, () => {
  console.log(`Server is listening on port ${port}.`);
});